Added dummy functions in JS for reference.

please be so kind to merge ;)