init js application