Bug fix, moved events.js to public folder