marked is not a function