Change LayoutTests' f*-j* files to use pre and post js files in LayoutTests/resources.