Updated js file, old functions removed