added grunt-htmlhint; modified some functions to optimize prototype