translate source code into jQuery plug-in.