Make some changes to the ejs render function & print_element helper