rename script to app
Divide app into controller and directive files