Breaks render functionality into separate js file.