added usage details to README, and cleaned up some variable names in the JS file