js lint errors solved Closes #40