added run js functionality