added subdirectory to js file