javascript fix to close #209