Adding RTL language support

Hi we are using this script on a site that supports both LTR and RTL languages.

The LTR or RTL gets set in the <html> dir="" attribute.

I spotted that the translate value was getting set as a negative value when it wants to be a positive value for RTL (note that .carousel-slide in the CSS is also set to float: right)

If the HTML dir attribute is set to RTL, I am altering the coords.x value. This value is only set to something other than 0 is the carousel mode is horizontal is far as I can tell.