add the js of ruServer and runTimer, which can used to running server

and do some function in every time we set.