Defines correct macros for js