added graph API guide for javascript