Small Js Refactoring

just added string goto property. Still not sure on naming convention