added callJS plugin

i modified this plugin a bit but it should be backward compatible,