updated js to render. needs all the work.