reorganized users.js file by category (story rendering, navigation, ajax calls) and minor refactoring