Added onerror handler
Added DS_Store to gitignore