Optimized JS and added a Minified version