move request animation frame to separate file, implement it on confetti render, declare variable on event listening, include files on layout