Moved story specified event and form handlers to separate javascript file.