add javascript to split page