adds js api blocks back to base.html
adds my previous snippert to hold on to