Reverting wrong changes, fixes JS error