Api Common js