Adding public dir with js