JS syntax fix on line 24