Expose js runtime path and added custom injection

This will allow application to manage when to inject the script. The
current method cannot make sure js is injected before your code runs