Using the Facebook api with standard javascript no libraries