Changed javascript file to work on the other arithmetic operators