minor js update to close #1