Added Javascript unit tests @ 91% code coverage