Updated javascript and few html

Put controller in a separated file
Put in-js format converts into angular filters
Put time handler rules into data.js