Fix widths and check heights on toggle switch click, implement toggle switch functionality into js file