Simple slotmachine using servlets and javascript