fixed problem with web2py.js, thanks Niphlod