replace helpers.parseJSON by JSON.parse
remove parseJSON and fix path bug
change code style according to jshint