clean layout from js