MICRO+MACROPHOTO bugfixes in JS