Move JS to simplievents.js