style: utilize jquery properly and coding style