Added Brackets to for and if in Prototype functions