Fixed syntax errors and added preventDefault for touch event son android bug