moved some reddit html to js