Js import

makes the call to js-import work (roughly). reversing the list of script tags probably isn't the best way to get the preamble loaded first. not sure of a better approach.