The missing Javascript smart persistent layer