Add version option to js plugin