added js animation file and will now reuse mag.html for both GET/POST methods