divided html view in two parts - js apart