just a roll back to working versionw without js errors on preview