spinner run js code