Update test.js

Adding slight button functionality