Improved JSHint config in build environment
Fixed JSHint warnings and strict mode in AMD template; updated build