jquery plugin definition, fixed errors (script references).