Issue #278 adding javascript code