Add basic login code js