various sweet.js macros for javascript