Enh #20: introduce JSCS & refactor code accordingly