move code render to browser