Small fixes on js
Remove usertype on 2.5+ restful plugin