some indentation fixes and get canvas with jquery