fixed js files
added parent for add