Remove javascript code for creating new event