Fixed string to number conversion in main.html