does JS support private methods?