Updated last ID function, HTML now minified