reform js using jQuery