Minor buildscript + JS cleanup.