Made javascript variable names easier to understand