Javascript framework for create lines, giving the function.