compile js in static site generation and add default.js