added knockout bindings, calculations, and query string detection