Changed javascript

Trying to do some more straightforward js var commands.