Fix of JavaScript "in" which was not working