Add getCordovajsRoot to api