JavaScript file for touch sensors