Move JavaScript imports to the layout