Finally back to a semi working code

Javascript files attached, Popup working but not sending to the database
= next step