Add resetting values on reload & clean up Javascript a little bit