fix github & wordpress & stackoverflow on pure js implementation