add rect block and javascript