Add localized JavaScript variables to WordPress theme

Add following code to your functions.php

Added variable can be found in i18n object.