Change from jQuery to QuoJS