source code for js decoder game