Set up JSHint, wrote an example and documentation.