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

For #287