Tidying up JS, use data-attrs where appropriate