removed symlink from js2 to js, created inline js function snippet