updated api, fixed flatting of html in gruntfile