added fallback for non js users