Generate list of JavaScript files in CMakeLists.txt.
Some types needed to be fixed due to the new file order.
Cleanup unneeded <script/> tags.