add rails js file
add rails js to layout
modify delete document function
improve document index view