FreeSlots in javascripts