Tooling around with javascript