Added new checks and modified gradler.js to retrieve contents from URL