removed useless function, added comments
Merge branch 'master' of https://github.com/ty-/xapi-jqm
cleaned up statements and moved redundant context to config.js