Update fc_main.js

Added code to make HCRatio functional.