Add sketch::entity
Split out js code to sk.js