javascript try catch -updated, grid layout, bootstrap