slider puzzle written in javascript in impactjs engine