Added scoredsetlayer.js and related tests.