Add javascript sample from respage front end