init js and configure page