Makes the javascript work correctly
Makes buttons work properly