Fixed JS parse error for first time visitors