Create draw_func.js