add jsdraw test code