adding javascript to fix #94