fixing some expose.js problems