add js comment for exported functions