No more inline JS. Closes #449. And more consistent build process.