added hourly.js and modified app.js to implement it