add license, readme and jshint. extend prototype instead of multiple declarations