Create separate JS files for widget