declare javascript as external js file