removed some trailing whitespace on the js from the previous commit