spectrum js