Remove Q dependency for client-side JS