compiler: js: use Backbone.Validation