JavaScript remake of the original classic