A simple puzzle built in javascript