fix dependency bug with caretjs