ran scripts.js through jsfiddle's JSHint