style(halclient): passes almost every jslint rule

Left unused first parameter of a function whose second parameter is used
and a circular reference between a constructor and a function that
produces a "was used before it was defined" jslint warning