Clone of Baron Schwartz' flexible-js-formatting from googlecode