There are a few things you can try to get this working.
-
Be ABSOLUTELY sure your script is being pulled into the page, one way to check is by using the ‘sources’ tab in the Chrome Debugger and searching for the file.
-
Be sure that you’ve included the script after you’ve included jQuery, as it is most certainly dependant upon that.
Other than that, I checked out the API and you’re definitely doing everything right as far as I can see. Best of luck friend!
EDIT: Ensure you close your script tag. There’s an answer below that points to that being the solution.