added gradder.js functionality