Remove dependency on jquery and enable csrf checks