Text adventure being written in JavaScript