Modified js to allow css to define dropdown left offset