added api to run scripts
added api to run scripts on single page