JS code fixes

Fix issue with russian date format in FF