codes refactoring for front end js codes
add some mock html pages