Fixed some javascript craziness created by the previous feature