Added isJSON() function

I added a function for checking whether the specified script is a JSON
script.