Replace jQuery with custom one

Fix #7.

It needs tests before merge.