Start of javascript renderer