Upgraded jQuery / Knockout and tidied code a little