localizing javascript to consider i18n day and month names

Renamed javascript allowing embedding of ruby code to take day names and month names from I18n api. It works, as suggested by user javan at #7.