Changes made to javascript