Added Block CRUD and javascript