add beginging of app file and js file