compile js file