remove no used js
change the way  get canvas