Clean up unused imports.
Split js out to it's own file.