Implement simple emitter using jQuery :3