changed canvas and working with js