Added knockout js to characteristic calculator.

Also made some refactorings and updated some libraries.