Finishing touches to the js helper