JS Scoping is strange, Fixed #30