modification for js strict