Add RTL language support
Reduce var statements
Remove uneeded whitespaces/lines