Issue #76, Fix error in javascript