release 0.0.8
jshint, reduce code duplication