Fixed #67 Bug javascript