another js fix for chrome, since it would return 'auto' for the css property