updated js model
check login
fix jsonp callback