refactoring
use jquery