Refactors for jQuery element finding efficiency
Fixes Safari bug of content disappearing when changing languages