javascript api for GFC