Fix UI build

Install casperjs before `npm install -d` to avoid having grunt-casperjs install casperjs.