Socialride js changes

Javascript changes for html pages