added jQuery to use onFirst