Switched to Google PHP API instead of JavaScript