Updated tilt.js with private variables and functions