remove redundant code

country_code parameter was defined for no good reason in the index view. Getting the country directly from the user_ip seems to do the same job.
remove extra blank line
country_code no longer needed in index view
remove empty line
Merge pull request #253 from ialja/master

Optimize some code in index view and js