fix monitor script
fix availDate handling using moment.js