Updated main JS file