Update stride.js

Constructor function