fix minor gem/json bug and removed old js file