Added in Javascript to provid basic button functionality