Functioning resque javascript timer with effects