Check for required plugin

Adds a check for the Json API plugin to avoid breakage if it fails.
Also cancels load of angular if the plugin isn't active
Merge pull request #1 from jdcauley/patch-1

Check for required plugin in scripts