Fixing error in Subject.js