rebuilt js-client to mvc template pattern