Better styling of remote signature page

Refactored js slightly