Create restSpLib.js