move code in moshine.identity and introduce site.js