Minor refactor, moved document ready function and extracted execute list into method