crystalviewer/build.js: trivial (indentation)
refactor: moved functions in index.html to new file main.js
crystalviewer/index.html: refactoring