Made the inputfields work

Created a javascript/json command that allows us to add new titles into
the database, still needs some correcting but now it works.