Updated .js

-- tyring to fix bugs