build fixes

Here are some build fixes, removing some jslint errors