js/dbdiff: Better integrate with php frontend

-	Rename close link to action link, which include print link too
-	Use class instead of id in action
-	Assign class for code, msg, flag
js/dbdiff: Move css example out to css/ and make a loader