define javascript as external js file