serve script.js and add static directory