synced web2py.js, thanks Vinicius