Corrections

Corrected JS & Added minified version