what does the % do in scripting ?
In Javascript its Modulus operator which is the remainder of a division
http://www.w3schools.com/js/js_operators.asp