Convert js-lint to Ruby, add rules for alert(), .trim()