Added Javascript

Added javascript to get the database inputs.