locate button, js and html format