Update web2py javascript for post 2.6 versions of web2py.
(copied form 2.8.2 welcome app).