Sources a series of Java script commands