Cycling Through Images using the JavaScript Remainder Operator