small fixes, removed jQuery dependency