load scritps from js file directly