Removed trailing comments
Wrapped throw method in square bracket notation to prevent browsers that treat it as a verboten keyword barfing