title data binding and restructure the js files