Removes dependency on javascript.

Javascript functionality should be defined in the host app if it is needed