modified from zeroclipborad, supports seajs, not ready for production