converting to meteor.js