add and require plugin dir for javascripts