Use js file instead of included js snippet