Your second form has the following class no-spacing
which will override the margin-left
in your shakeForm
function due to the !important
.no-spacing {
padding: 0px !important;
margin: 0px !important;
}
solved JavaScript not working properly on page