Rename ids and split JS