switch to request + q instead of jquery