add ref to js file in examples