solgs related js code..