fix javascript contact and login