Corrected javascript spelling mistake