Slush generator for a hawtio plugin in javascript