Updated JS to pass JSHint tests & JS/CSS to work after build process