Added event system folowing standard jQuery .on and .trigger methods.