Fixed a missing javascript issue