Fixed javascript of losing event handler after ajax call except for #78 bug