fix for java-script less browsers