refactoring

1. Add js file for each page
2. use global data for restaurantID & name. These need to be set by
mainPage