Fixed some compilation errors (using jquery instead of Nic).