Tp fix all javascript

Yes this is the only functionality of the code.