little fix for js