fixed broken javascript for non dynmaic prices and preview #236