blah I shouldn't be sharing ruby and js variables but w/e