modulerized routes into separate js files. fixed index page menu display.
save input.js