Richard Xue: js plugin