make sure JS functions return undefined

so that they play nice with <a href="javascript:...">...</a>