edit some parts
js file for slotmachine action