adding missing javescript