Added js ajax functions for internal calls to stored data