Start of js code

starting the code for wiring the buttons