cleaning up code

js was a little screwy, now its a little less screwy