fixed cube render in js