Fix Issue #30 Refactor de javaScript