added appPath to js