fix wrong jQuery usage and markdown issues