Add plugin initVars:
- jsinitfunction
- jscallbackfunction
for JavaScript init and event callback functions.
Merge pull request #1362 from fixedmachine/configurable_init_function

Add configurable initVars for JavaScript init and event callback functions