js app construct