Fixed jslinting error with grunt build task.
Added breakpoints, additional helper functions and php functions.