events/jobs in separate js