Exclude non JSON content from javascript - Senthil