javascript overriding