helpers.js added for common functionality, bug row formatting refactored