Hallway movement fixed; namespaced vars

Cleaned up js code, fixed a movement bug in hallway.