Refactore code with JQuery sintax

Signed-off-by: Filipe Leuch Bonfim <flb09@inf.ufpr.br>