cleaning up code

js was a little screwy, now its a little less screwy
more clean up

the JS is squeaky clean