link buttons to javascript