Updated jquery functions and added login via facebook