Added javascript custom event system feature part