drawing board, fixed some javascript