create site.js and moved related code from dev.js