craft.js makes things now. use it.