place comics js in a function block