fix js and add an insertion in database for the website when you use the full website feature