Fixed out of date JavaScript ref