a proposed way to avoid inline javascript in web2py code