refine js, move the consts to the head of srs.js