Some prep
Switched in percentage left and cleaned up the javascript