changed ref to haptics.js file rather than use rawgit