only format on save if the option is enabled AND we are in a js/javascript file.