Update JS libs to latest versions

 * curl -> 0.8
 * event emitter -> 4.2