basic refactoring

split boundary data into an array to help us to split scene data
from js code.