exposed method to run applications from js runtime