switched random class to js due to varnish caching