Rename compare_earnings to compare_earnings.js

added extension