modifying javascript