Now compiles with latest version of ghcjs-jquery etc, thanks to Luite Stegeman for this.