Adding RTL

In our case we have Arabic RTL layout, so I've modified the plugin to do the positioning according to LTR/RTL.