Remove hard-coded 'a' tags from JS