New jQuery interface for access points, with lot of js inside

For #287
I hate 2 lines indenting but well :dart: