finaled the structure of sb_login.js