move a couple of server side javascript files into app directory