initial haptics.js file