Changing from CSS to HTML 5 Canvas