Javascript fixes, locale change