fixed mistakes
fixed mistakes in js