DJR:Converted scene rendering to JavaScript from PHP