fix typechange error (couldnt change the type); add "Restrict: E"; fix minor jshint errors; use type attribute to define type
fix element restriction

there was no template
Merge pull request #1 from dthrice/master

fix typechange error (couldn't change type without an error)