apiCheck.js example
Check the console... And the code.