add jsbeautify rc, adjust whitespace, abstract out route