pulls out javascripts into separate files.