added javascript function snippet package